﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WebSite.Core;

namespace WebSite
{
    public partial class Demo : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click( object sender, EventArgs e )
        {
            //TeamImageHelper.CombinTeamHead( "/images/teamphotobase.jpg", "/UploadImages/Cut/c0743a409a354b9d8d4f32300e5f1f30.jpg",
            //    "/UploadImages/Cut/116749802fa846ff8e674302be5653d2.jpg", "/UploadImages/Team/" + Guid.NewGuid().ToString( "N" ) + ".jpg" );

            Cache.Insert( "aaa", 1, null, DateTime.Now.AddMinutes( 1 ), System.Web.Caching.Cache.NoSlidingExpiration );

            Response.Write( Cache["aaa"].ToString() );

            Cache.Insert( "aaa", 2, null, DateTime.Now.AddMinutes( 1 ), System.Web.Caching.Cache.NoSlidingExpiration );

            Response.Write( Cache["aaa"].ToString() );
        }
    }
}